<?php
class Polls extends Public_Controller{
	
	function __construct(){
		parent::__construct();
		$this->load->model('polls_m');
	}
	public function vote(){
		$id = $this->input->post('vote');
		$this->polls_m->vote($id);
		$this->session->set_userdata('polls',true);
		redirect("");
	}
}